<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	<table border="1">
		<tr>
			<td>id</td>
			<td>昵称</td>
			<td>email</td>
			<td>密码</td>
			<td>简介</td>
			<td>性别</td>
			<td>删除</td>
		</tr>
		<c:forEach var="userDetail" items="${list}">
			<tr>
				<td>${userDetail.id}</td>
				<td>${userDetail.nickName}</td>
				<td>${userDetail.email}</td>
				<td>${userDetail.passwd}</td>
				<td>${userDetail.intro}</td>
				<td>
					<c:if test="${userDetail.sex eq 0}">女</c:if>
					<c:if test="${userDetail.sex eq 1}">男</c:if>
				</td>
				<td><a href="/jspstudy/UserDetailDel?id=${userDetail.id}">删除</a></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>